package cfdt.ldl.sys.controller;

import cfdt.common.vo.ObjectBaseResponse;
import cfdt.ldl.sys.api.request.LoginSysRequest;
import cfdt.ldl.sys.service.LoginSysService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/login")
public class LoginSysController {

    private final Logger logger = LoggerFactory.getLogger(getClass().getName());

    @Autowired
    private LoginSysService loginService;

    @GetMapping("/doLogin")
    public ObjectBaseResponse doLogin(@RequestBody LoginSysRequest request) throws Exception {
        return loginService.login(request);
    }



}
